<template>
  <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item label="岗位名称">
      <el-input v-model="formInline.user" placeholder="岗位名称" />
    </el-form-item>
    <el-form-item label="城市">
      <el-input v-model="formInline.user" placeholder="城市" />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script lang="ts" setup>
import { onMounted, reactive } from 'vue'

onMounted(() => {
  console.log('mounted')
})

const formInline = reactive({
  user: '',
  region: '',
})

const onSubmit = () => {
  console.log('submit!',formInline)
}
</script>
